import requests

# url = 'http://127.0.0.1:8000/api/add_event/'
# headers = {"Content-Type": "application/x-www-form-urlencoded"}
# data = {"eid": "23345", "name": "CXK演唱会", "limit": 23, "status": 1, "address": "光谷广场", "start_time": "2023-7-31"}
# response = requests.post(url,headers =headers,data=data)
# print(response.status_code)

url1 = 'http://47.108.206.100:8080/admin/login'
json = {
  "password": "macro123",
  "username": "admin"
}
response = requests.post(url1,json=json)
print(response.status_code)
print(response.text)
print(response.json())
print(response.cookies)
print(response.headers)
print(response.encoding)
print(response.url)

